package com.sunyard.domee.commons.redis;

/**
 * @program domee
 * @description
 * @author raoinyx@163.com
 * @create 2020-07-18 00:23
 */
public class RedisKeyUtils {

    /**获取token缓存key*/
    public static String getAccountKey(String account){
        return Keys.AUTH_ID + account;
    }
    /**获取token缓存key*/
    public static String getTokenKey(String token){
        return Keys.AUTH_TOKEN + token;
    }
    /**获取权限缓存key*/
    public static String getRoleKey(Integer role){
        return Keys.ROLE_KEY + role;
    }

    /**获取菜单缓存key*/
    public static String getMenuKey(Integer menu){
        return Keys.MENU_KEY + menu;
    }

}
